# P357-P360
def recursion(num):
    if num == 1:
        return 1
    temp = recursion(num - 1)
    return temp + num

print(recursion(3))
